package com.dbdata.move.model;

// Generated cafuc by Hibernate Tools 4

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * FlyTrainRecord generated by hbm2java
 */
@Entity
@Table(name = "fly_train_record")
public class FlyTrainRecord implements java.io.Serializable {

	private Long id;
	private UserBaseInfo userBaseInfo;
	private String trainName;
	private Date biginDate;
	private Date endDate;
	private Integer flyTime;
	private String verdict;
	private String remark;

	public FlyTrainRecord() {
	}

	public FlyTrainRecord(UserBaseInfo userBaseInfo) {
		this.userBaseInfo = userBaseInfo;
	}

	public FlyTrainRecord(UserBaseInfo userBaseInfo, String trainName,
			Date biginDate, Date endDate, Integer flyTime, String verdict,
			String remark) {
		this.userBaseInfo = userBaseInfo;
		this.trainName = trainName;
		this.biginDate = biginDate;
		this.endDate = endDate;
		this.flyTime = flyTime;
		this.verdict = verdict;
		this.remark = remark;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TRAIN_USER", nullable = false)
	public UserBaseInfo getUserBaseInfo() {
		return this.userBaseInfo;
	}

	public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
		this.userBaseInfo = userBaseInfo;
	}

	@Column(name = "TRAIN_NAME", length = 50)
	public String getTrainName() {
		return this.trainName;
	}

	public void setTrainName(String trainName) {
		this.trainName = trainName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BIGIN_DATE", length = 19)
	public Date getBiginDate() {
		return this.biginDate;
	}

	public void setBiginDate(Date biginDate) {
		this.biginDate = biginDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "END_DATE", length = 19)
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "FLY_TIME")
	public Integer getFlyTime() {
		return this.flyTime;
	}

	public void setFlyTime(Integer flyTime) {
		this.flyTime = flyTime;
	}

	@Column(name = "VERDICT", length = 20)
	public String getVerdict() {
		return this.verdict;
	}

	public void setVerdict(String verdict) {
		this.verdict = verdict;
	}

	@Column(name = "REMARK", length = 200)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
